import uvicorn
from fastapi import FastAPI
from web.routers import predict_router

# 创建FastAPI应用实例
app = FastAPI()

# 注册路由
app.include_router(predict_router)


# 启动应用
def run_app():
    uvicorn.run('web.app:app', host='0.0.0.0', port=8000)
